package office.dao.hr;

import java.util.Iterator;
import java.util.Map;

import platform.common.dao.impl.BaseDomainProviderImpl;

public class MatterSpecifyDP extends BaseDomainProviderImpl{
	
	//方法描述: 获取供应商明细
	@SuppressWarnings("unchecked")
	public String findMatterSpecifyByIdAndName(Map condMap){
		StringBuffer strBuf = new StringBuffer();
		strBuf.append(" from "+ this.getDomainClassName() + " where 1=1 ");
		Iterator it = condMap.keySet().iterator();
		while(it.hasNext()){
			String str = (String)it.next();
			if(str.equals("title")){
				strBuf.append(" and title like '%"+condMap.get(str)+"%' ");
			}
			if(str.equals("handleUser")){
				strBuf.append(" and (handleUser = '"+condMap.get(str)+"' or createMan='"+condMap.get(str)+"' )");
			}
		}
		strBuf.append(" order by createDate ");
		return strBuf.toString();
	}
}
